package com.huiqiao.lesson7.simple;

import org.springframework.stereotype.Repository;

@Repository
public class UserDao {

    public int addUser() {
        // 模拟业务耗时
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("UserDao.addUser");
        return 1;
    }

    public int updateUser() {
        System.out.println("UserDao.updateUser");
        return 1;
    }
}
